package com.pmcc.core.entity.security;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.pmcc.core.entity.UUIDEntity;
import io.swagger.annotations.ApiModel;

import javax.persistence.*;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Set;

/**
 * Created by tomas on 2018/4/9.
 */
@Entity
@Table(name = "sys_role")
@ApiModel(value = "角色权限" ,description = "role")
public class Role extends UUIDEntity {

    @Column(name = "code")
    private String code;// 角色编号

    @Column(name = "name")
    private String name;//角色名称

    @Column(name = "state")
    private Integer state;//状态 0 启用 1禁用

    @Column(name = "menu_key")
    private String menuKey;//菜单key

    @Column(name = "del_flag")
    private Integer delFlag;//删除标记

    @Column(name="remark")
    private String remark;//备注

    @Column(name = "creater")
    private String creater;

    @Column(name = "crteate_time")
    private Date createTime;

    @Column(name="menu_list")
    private String menuList;

    public String getMenuList() {
        return menuList;
    }

    public void setMenuList(String menuList) {
        this.menuList = menuList;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getMenuKey() {
        return menuKey;
    }

    public void setMenuKey(String menuKey) {
        this.menuKey = menuKey;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
